package com;


import java.util.ArrayList;
import java.util.HashMap;
import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * User: Lenovo
 * Date: 11.11.2012
 * Time: 23:31
 * To change this template use File | Settings | File Templates.
 */
public abstract class ScannerBase
{
    protected FlexLexer lexer;
    ArrayList<String> keyWords;
    ArrayList<String> tokenCodeKeyWords;
    // TokenCode tCode;
    // Token m_currentToken;



    public void initializeKeywords()
    {
          // adding the keywords to the arraylist
        keyWords.add("program");
        keyWords.add("var");
        keyWords.add("array");
        keyWords.add("of");
        keyWords.add("integer");
        keyWords.add("real");
        keyWords.add("function");
        keyWords.add("procedure");
        keyWords.add("begin");
        keyWords.add("end");
        keyWords.add("if");
        keyWords.add("then");
        keyWords.add("else");
        keyWords.add("while");
        keyWords.add("do");
        keyWords.add("not");
        keyWords.add("not_used");
    }

    // hugsanlega óþarfur , sja til seinna
    /*
    public void initializeTokenCodeKeyWords()
    {
        tokenCodeKeyWords.add("relop");
        tokenCodeKeyWords.add("mulop");
        tokenCodeKeyWords.add("addop");
        tokenCodeKeyWords.add("lbracket");
        tokenCodeKeyWords.add("ERROR");
        tokenCodeKeyWords.add("assignop");
        tokenCodeKeyWords.add("number");
        tokenCodeKeyWords.add("rbracket");
        tokenCodeKeyWords.add("id");
        tokenCodeKeyWords.add("none");
        tokenCodeKeyWords.add("comment");
        tokenCodeKeyWords.add("colon");
        tokenCodeKeyWords.add("semicol");
        tokenCodeKeyWords.add("dotdot");
        tokenCodeKeyWords.add("dot");
        tokenCodeKeyWords.add("comma");
        tokenCodeKeyWords.add("lparen");
        tokenCodeKeyWords.add("rparen");
        tokenCodeKeyWords.add("number");
        tokenCodeKeyWords.add("eof");
    }
    */
}
